package cn.zyq.ykb.controller.h5.task;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.ry.util.poi.ExcelUtil;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.task.HomeChart;
import cn.zyq.ykb.service.task.HomeChartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 首页-轮播图Controller
 *
 * @author SystemAuth
 * @date 2023-06-01
 */

@RestController(value = "H5HomeChartController")
@RequestMapping("/api/homeChart")
@Api(tags = "首页-轮播图接口")
public class HomeChartController extends BaseController {

    @Autowired
    private HomeChartService homeChartService;

    /**
     * 查询首页-轮播图列表
     */
    @ApiOperation(value = "列表", response = HomeChart.class)
    @PostMapping("/list")
    public Object list(@RequestBody PageParam pageParam) {
        return this.homeChartService.selectHomeChartList(pageParam);
    }

}
